#include "Light.h"

namespace GL
{
    Light::Light(const std::string &shaderUrl)
    {
        ObjectData Data;
        Data.l = -0.5f;
        Data.r = 0.5f;
        Data.t = 0.5f;
        Data.b = -0.5f;
        Data.f = -0.5f;
        Data.n = 0.5f;
        Data.R = 1.0f;
        Data.G = 0.0f;
        Data.B = 0.0f;
        Data.A = 1.0f;
        Data.D = 0.0f;
        Data.W = 0.0f;

        m_Renderer = new LightRenderer(Data, shaderUrl);
    }

    Light::~Light()
    {
    }

    void Light::Destory()
    {
    }

    void Light::Render()
    {
        m_Renderer->Render();
    }
    void Light::Update()
    {
        Render();
    }
}